//
//  JYTUserManager.h
//  JYT_IOS
//
//  Created by nxa-tankeke on 16/11/18.
//  Copyright © 2016年 com.yuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"
#import "JYTHttpClient.h"
#import "JYTProvince.h"
#import "JYTCity.h"
#import "JYTZone.h"

@interface JYTUserManager : NSObject

+ (JYTUserManager *) shared;

//获取cityId
- (NSString *)getCityId;

//用户角色 游客  轻量级用户  功能用户
- (NSString *)getRoleId;

//设置url
- (void)setUrlToHttpClient:(JYTHttpClient *)client;
//获取url
- (NSString *)getUrlByCityId:(NSString *)cityId;
//获取指定城市
- (JYTCity *)getCityById:(NSString *)CityId;

//获取是否登录
- (BOOL)isUsedOffLine;
//保存登录状态 0 为登录 1 为没登录
- (void)setUsedOffLine:(NSString *)value;


//保存当前用户
- (void) setUser:(User *)user;
//获取当前用户
- (User *) getUser;

//保存登录名称
- (void) setUserLoginName:(NSString *)loginName;
//获取登录名称
- (NSString *) getUserLoginName;


//保存昵称
- (void) setNikeName:(NSString *)name;
//获取昵称
- (NSString *) getNikeName;


//保存用户头像
- (void) setUserHeadUrl:(NSString *)url;
//获取用户头像
- (NSString *) getUserHeadUrl;


//保存省市区数组
- (void) setProviceArr:(NSArray *)parr andcsuArr:(NSArray *)csuArr;
//获取省市区数组
- (NSArray *) getCsuArr;

//获取省数组
- (NSArray *) getProviceArr;

//获取市数组
- (NSArray *)getCityArr;

//获取指定省份
- (JYTProvince *)getProvinceById:(NSString *)provinceId;

- (void) removeSaveInfomation;
@end
